<?php
@session_start();

// $invoice_detail = array();
// $invoice_detail['username'] = $_SESSION['username'];
// $invoice_detail['detail'] = $_SESSION['cart'];
$invoice_detail = json_encode($_SESSION['cart']);
// $json_string = json_encode($invoice_detail);

// echo $json_string;
echo $invoice_detail;